//
//  H_UserMemberModel.m
//  Honey
//
//  Created by 贾亚涵 on 16/5/7.
//  Copyright © 2016年 贾亚涵. All rights reserved.
//

#import "H_UserMemberModel.h"

@implementation H_UserMemberModel

//编码，可以在沙盒中生成一个文件
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_userPhone forKey:@"userPhone"];
    [aCoder encodeObject:_bdUserPhone forKey:@"BDuserPhone"];
    [aCoder encodeBool:_isLogin forKey:@"isLogin"];
}

//解码
-(id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init])
    {
        _userPhone = [aDecoder decodeObjectForKey:@"userPhone"];
        _bdUserPhone = [aDecoder decodeObjectForKey:@"BDuserPhone"];
        _isLogin = [aDecoder decodeBoolForKey:@"isLogin"];
    }
    return self;
}
@end
